# Copyright (c) 2025, qiushike and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class TrackingNumber(Document):
	def before_insert(self):
		self.tracking_number_barcode = self.tracking_number

	def after_rename(self, olddn, newdn, merge=False):
		self.db_set("tracking_number_barcode", newdn)		
